<template>
    <div id="adminBlogType">
        定义一个类型:
        <el-input type="text" v-model="blogType.name"></el-input>
        <button @click="submitBlogTypes">提交</button>
    </div>
</template>

<script>
    import Vue from 'vue'

    export default {
        name: "AdminBlogType",
        data() {
            return {
                blogType: {name: ''}

            }
        },
        methods: {
            submitBlogTypes() {
                Vue.axios.post('http://localhost:8500/blogType/admin/addBlogType', this.blogType).then(res => {

                }).catch(err => {

                })
            }
        }
    }
</script>

<style scoped>

</style>